package cn.edu.scau.cmi.xiaozhenlin.client;

import cn.edu.scau.cmi.xiaozhenlin.interProgramming.Car;
import cn.edu.scau.cmi.xiaozhenlin.interProgramming.Truck;
import cn.edu.scau.cmi.xiaozhenlin.interProgramming.Vehicle;

public class InterProgrammingClient {

	public static void main(String[] args) {
		Vehicle car = new Car("Jem", 1.5);
		Vehicle truck = new Truck("Dam", 5.2);

		System.out.println(car.getName() + "' s weight is " + car.getWeight() + " ton");
		System.out.println(truck.getName() + "' s weight is " + truck.getWeight() + " ton");
	}

}
